﻿namespace BrowserGameFramework.Units
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using BrowserGameFramework.Common.Map;

    /// <summary>
    /// Represens one Unit
    /// </summary>
    public class Unit
    {
        /// <summary>
        /// Gets or sets the id of the Unit
        /// </summary>
        /// <value>The id.</value>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the type of the attack.
        /// </summary>
        /// <value>The type of the attack.</value>
        public UnitEnums.AttackTypes AttackType { get; set; }

        /// <summary>
        /// Gets or sets the health.
        /// </summary>
        /// <value>The health.</value>
        public int Health { get; set; }

        /// <summary>
        /// Gets or sets the agility.
        /// </summary>
        /// <value>The agility.</value>
        public int Agility { get; set; }

        /// <summary>
        /// Gets or sets the field.
        /// </summary>
        /// <value>The field.</value>
        public MapField Field { get; set; }

        /// <summary>
        /// Gets or sets the player id, with own this unit.
        /// </summary>
        /// <value>The player id.</value>
        public int PlayerId { get; set; }
    }
}
